GET
/
signin
/
provider
/
{provider}
Sign in with an OAuth2 provider
curl --request GET \
  --url https://{subdomain}.auth.{region}.nhost.run/v1/signin/provider/{provider}
This response has no body data.

Path Parameters

provider
enum<string>
required
deprecated

The name of the social provider

Available options:
apple,
github,
google,
linkedin,
discord,
spotify,
twitch,
gitlab,
bitbucket,
workos,
azuread,
strava,
facebook,
windowslive,
twitter

Query Parameters

allowedRoles
string[]

Array of allowed roles for the user

Example:
["me", "user"]
defaultRole
string

Default role for the user

Example:

"user"

displayName
string

Display name for the user

Maximum length: 32
Example:

"John Smith"

locale
string

A two-characters locale

Required string length: 2
Example:

"en"

redirectTo
string<uri>

URI to redirect to

Example:

"https://my-app.com/catch-redirection"

connect
string

If set, this means that the user is already authenticated and wants to link their account. This needs to be a valid JWT access token.